package com.b2c.ftysys.vo;

import java.lang.reflect.Method;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.b2c.ftysys.helper.ObjectUtils;

public class OrderItemVo extends BaseVo {
	/**
	 * itemId
	 */
	private Long pdtorderid;

	/**
	 * 客户订单号
	 */
    private String orderid;

    /**
     * 客户订单产品属性
     */
    private String attribute;
   
    /**
     * 导入日期
     */
    private Date arrivedate;

    /**
     * 期望发货日期
     */
    private Date senddate;

    /**
     * 订货数量
     */
    private Integer ordernum;

    /**
     * SKU
     */
    private String cmtpdtorderid;
    
    /**
     * 条码
     */
    private String cmtpdtid;
    
    /**
     * 客户订单序号
     */
    private Integer trackNo;

	public Long getPdtorderid() {
		return pdtorderid;
	}

	public void setPdtorderid(Long pdtorderid) {
		this.pdtorderid = pdtorderid;
	}

	public String getOrderid() {
		return orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	public String getAttribute() {
		return attribute;
	}

	public void setAttribute(String attribute) {
		this.attribute = attribute;
	}

	public Date getArrivedate() {
		return arrivedate;
	}

	public void setArrivedate(Date arrivedate) {
		this.arrivedate = arrivedate;
	}

	public Date getSenddate() {
		return senddate;
	}

	public void setSenddate(Date senddate) {
		this.senddate = senddate;
	}

	public Integer getOrdernum() {
		return ordernum;
	}

	public void setOrdernum(Integer ordernum) {
		this.ordernum = ordernum;
	}

	public String getCmtpdtorderid() {
		return cmtpdtorderid;
	}

	public void setCmtpdtorderid(String cmtpdtorderid) {
		this.cmtpdtorderid = cmtpdtorderid;
	}

	public String getCmtpdtid() {
		return cmtpdtid;
	}

	public void setCmtpdtid(String cmtpdtid) {
		this.cmtpdtid = cmtpdtid;
	}
	
	public String toString() {
		ToStringBuilder stringBuilder = new ToStringBuilder(this);
		for (Method method : getClass().getDeclaredMethods()) {
			try {
				if (method.getName().indexOf("get") == 0) {
					stringBuilder.append(method.getName() + "-->"
							+ ObjectUtils.invokeMethod(this, method.getName()));
				}
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return stringBuilder.toString();
	}

	public Integer getTrackNo() {
		return trackNo;
	}

	public void setTrackNo(Integer trackNo) {
		this.trackNo = trackNo;
	}
}
